@import "@usehook/cursor.scss";

.el-radio .el-radio__inner {
  width: 16px !important;
  height: 16px !important;
}

.el-radio .el-radio__label {
  position: relative;
}

.el-radio__label {
  font-size: var(--font-size);
  font-weight: var(--font-weight);
  color: var(--font-color);
  height: 100%;
  align-items: center;
  justify-content: center;
  display: flex;
}

.el-radio__input {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.el-radio__input.is-disabled .el-radio__inner,
.el-radio__input.is-disabled + span.el-radio__label,
.el-radio,
.el-radio__input,
.el-radio__input.is-disabled .el-radio__inner:after {
  cursor: default;
}

.el-radio,
.el-radio * {
  @include cursor-pointer-important;
}

.el-radio-button {
  --el-radio-button-checked-bg-color: rgb(0 0 0 / 0.1);
  --el-radio-button-checked-text-color: var(--el-color-white);
  --el-radio-button-checked-border-color: transparent;
  --el-radio-button-disabled-checked-fill: rgb(0 0 0 / 0.1);
}

.el-radio-button__inner {
  background: transparent;
  border: none !important;
  backdrop-filter: var(--overlay-background-filter-blur) !important;
}

.el-radio-button__original-radio:disabled + .el-radio-button__inner {
  border-color: transparent;
  background-color: transparent;
  color: rgba(255, 255, 255, 0.5);
}

.el-radio-group:has(.el-radio-button) {
  box-shadow: 0 0 0 20px rgb(187 187 187 / 10%) inset;
  border-radius: var(--el-border-radius-base);
}

.el-radio-button__inner {
  line-height: calc(var(--font-size) + 1px) !important;
  vertical-align: baseline;
}

.input-auto-resize {
  .el-radio-button {
    height: 100%;
  }

  .el-radio-button__inner {
    height: 100%;
  }
}
